//
//  DaRencell.m
//  Hand-held_kitchen
//
//  Created by 张张烨 on 16/1/21.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "DaRencell.h"

@implementation DaRencell
- (void)dealloc
{
    [_touxiang release];
    [_nicheng release];
    [_neirong release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.touxiang = [[UIImageView alloc]init];
        [self.contentView addSubview:_touxiang];
        [_touxiang release];
        
        self.nicheng = [[UILabel alloc]init];
        _neirong.font = [UIFont systemFontOfSize:14* KUAN];
        [self.contentView addSubview:_nicheng];
        [_nicheng release];
        
        self.neirong = [[UILabel alloc]init];
        _neirong.font = [UIFont systemFontOfSize:13* KUAN];
        _neirong.numberOfLines = 2;
        _neirong.textColor = [UIColor redColor];
        [self.contentView addSubview:_neirong];
        [_nicheng release];
    }
    return self;
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    
    _touxiang.frame = CGRectMake(15 * KUAN, 20 * GAO, 55 * KUAN, 55 * GAO);
    _nicheng.frame = CGRectMake(90 * KUAN, 20 * GAO, 200 * KUAN, 30 *GAO);
    _neirong.frame = CGRectMake(90 * KUAN, 35 *GAO, 200 * KUAN, 60 * GAO);
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
